package chapter4.No4_1_使用reentrantLock类.demo2;

/**
 * !
 *
 * @author liujian
 * @version 2016/11/21 0021
 */
public class ThreadB extends Thread {
    ServiceClass sc;

    public ThreadB(ServiceClass sc) {
        this.sc = sc;
    }

    @Override
    public void run() {
        sc.methodB();
    }
}
